package com.autologistics.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Goods entity. @author MyEclipse Persistence Tools
 */

public class Goods implements java.io.Serializable {

	// Fields

	private Integer id;
	private Goodskind goodskind;
	private User user;
	private String name;
	private Double price;
	private Set goodsorders = new HashSet(0);

	// Constructors

	/** default constructor */
	public Goods() {
	}

	/** full constructor */
	public Goods(Goodskind goodskind, User user, String name, Double price,
			Set goodsorders) {
		this.goodskind = goodskind;
		this.user = user;
		this.name = name;
		this.price = price;
		this.goodsorders = goodsorders;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Goodskind getGoodskind() {
		return this.goodskind;
	}

	public void setGoodskind(Goodskind goodskind) {
		this.goodskind = goodskind;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Set getGoodsorders() {
		return this.goodsorders;
	}

	public void setGoodsorders(Set goodsorders) {
		this.goodsorders = goodsorders;
	}

}